package com.ruoyi.order.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.order.domain.OrderBy;

/**
 * 订单Service接口
 * 
 * @author ruoyi
 * @date 2023-10-12
 */
public interface IOrderByService 
{
    /**
     * 查询订单
     * 
     * @param orderId 订单主键
     * @return 订单
     */
    public OrderBy selectOrderByByOrderId(Long orderId);

    /**
     * 查询订单列表
     * 
     * @param orderBy 订单
     * @return 订单集合
     */
    public List<OrderBy> selectOrderByList(OrderBy orderBy);

    /**
     * 新增订单
     * 
     * @param orderBy 订单
     * @return 结果
     */
    public int insertOrderBy(OrderBy orderBy);

    /**
     * 修改订单
     * 
     * @param orderBy 订单
     * @return 结果
     */
    public int updateOrderBy(OrderBy orderBy);

    /**
     * 批量删除订单
     * 
     * @param orderIds 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteOrderByByOrderIds(Long[] orderIds);

    /**
     * 删除订单信息
     * 
     * @param orderId 订单主键
     * @return 结果
     */
    public int deleteOrderByByOrderId(Long orderId);

    List<OrderBy> selectOrderByUserId(Long userId);

    List<OrderBy> getOrderDetail(Long shopsId);

    List<OrderBy> selectOrderByByStatus(Long status);
}
